﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMPSDAO.Entity.Attributes;

namespace AMPSDAO.Entity.Entitys
{
    public class Account:BaseEntity
    {
        private long id;
        [ColumnAttribute(PrimaryKey=true, NotNull=true)]
        public long ID
        {
            get { return id; }
            set { id = value; }
        }

        private string name;
        [ColumnAttribute(Length=20, NotNull=true)]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private string password;
        [ColumnAttribute(Length=20, NotNull=true)]
        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        private bool isDisable;
        [ColumnAttribute()]
        public bool IsDisable
        {
            get { return isDisable; }
            set { isDisable = value; }
        }
        
    }
}
